#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QWidget>
#include <QMainWindow>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton>
#include <QStackedWidget>

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
private:
    QPushButton* nextButton = nullptr;
    QPushButton* prevButton = nullptr;
    QWidget* vWidget = nullptr;
    QWidget* hWidget = nullptr;
    QVBoxLayout* vBoxLayout = nullptr;
    QHBoxLayout* hBoxLayout = nullptr;
    QStackedWidget* stackedWidget = nullptr;

    int timeId = 0;
protected:
    void timerEvent(QTimerEvent *event);
private slots:
    void nextPager();
    void prevPager();
    void currentChanged(int);
};

#endif // MAINWINDOW_H
